<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateStatisticsTable extends Migration
{
    public function up()
    {
        Schema::create('statistics', function (Blueprint $table) {
            $table->id();
	        $table->string('title')->nullable()->index();
	        $table->decimal('value', 12, 2)->default(0.00);
            $table->timestamps();
        });
    }
    
    public function down()
    {
        Schema::dropIfExists('statistics');
    }
}
